package org.jgs1904.oopbase.practice.interfacei;

/**
 * 稿费收入税率是20%
 */
public class RoyaltyIncome extends Father implements Income {

    public RoyaltyIncome(double income) {
        super(income);
    }

    @Override
    public double getTax() {

        return income * 0.2; // 税率20%
    }

}
